<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width: 130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	<tr>
		<td colspan="4" class="t_bar2">项目基本信息</td>

	</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td colspan="3"><input id="zh_title" name="proposal/zh_title"
			label="项目名称" type="text" required
			class="input_css required maxlength:50" style="width: 586px;"
			maxlength="50"
			value="<x:out select="$xmlData/data/proposal/zh_title" />" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>投资时间：</td>
		<td width="248px;"><c:set var="invest_date">
				<x:out select="$xmlData/data/proposal/invest_date" />
			</c:set> <cpt:date id="invest_date" name="proposal/invest_date"
				value="${invest_date}" className=" required date" label="投资时间"></cpt:date>
		</td>
		<td align="right" nowrap width="200"><span class="color_red">*</span>经营场所面积（㎡）：</td>
		<td><input name="proposal/premises_area" label="经营场所面积" type="text"
			required class="input_css required maxlength:50" maxlength="10"
			onfocus="InitInput.setNumber(this,9,4,2)"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/premises_area" />" /></td>
	</tr>
	<tr>
		<td nowrap  align="right" ><span class="color_red">*</span>所在区域：</td>
		<td colspan="3">
		 <label><input type="radio" name="exhibition"   style="vertical-align: middle;"  class="do" value="1" label="美国" onchange="changeArea();"><span style="vertical-align: middle;">美国</span></label>
		 <label><input type="radio" name="exhibition"  style="vertical-align: middle;"  class="do" value="2" label="欧洲" onchange="changeArea();"><span style="vertical-align: middle;">欧洲</span></label>
		 <label><input type="radio" name="exhibition"  style="vertical-align: middle;"  class="do" value="3" label="日本" onchange="changeArea();"><span style="vertical-align: middle;">日本</span></label>
		 <label><input type="radio" name="exhibition"  style="vertical-align: middle;"  class="do" value="4" label="韩国" onchange="changeArea();"><span style="vertical-align: middle;">韩国</span></label>
		 <label><input type="radio" name="exhibition"  style="vertical-align: middle;"  class="do" value="5" label="其他" onchange="changeArea();"><span style="vertical-align: middle;">其他</span></label>
		 <input type="text" style="display: none" id="exhibition_area" name="proposal/exhibition_area" maxlength="20"  label="所在区域-->其他" value="<x:out select="$xmlData/data/proposal/exhibition_area" />">
		<input type="hidden" id='exhibition_value' name="proposal/exhibition_value" class="required"  label="所在区域"  value="<x:out select="$xmlData/data/proposal/exhibition_value" />">	
		<input type="hidden" name="proposal/exhibition_name" id="exhibition_name" value="<x:out select="$xmlData/data/proposal/exhibition_name" />">	
		</td>
	</tr>
	<tr>
		<td width="200" align="right"><span class="color_red">*</span>设立地点：</td>
		<td colspan="3"><input name="proposal/address" label="设立地点"
			type="text" required class="input_css required"
			style="width: 586px;" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>设立形式：</td>
		<td nowrap colspan="3" valign="middle"><label> 
			<input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="establish" label="独资企业"
				value="01" /><span style="vertical-align: middle;">独资企业</span></label> 
		<label> 
		<input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="establish" label="合资企业"
				value="02" /><span style="vertical-align: middle;">合资企业</span></label> 
		<label>
			<input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="establish" label="境外分支机构"
				value="03" /><span style="vertical-align: middle;">境外分支机构</span></label> 
		<input type="hidden" name="proposal/establish_value" id="establish_value" class="required" value="<x:out select="$xmlData/data/proposal/establish_value" />"
			label="设立形式" /> 
		<input type="hidden" name="proposal/establish_name" id="establish_name" value="<x:out select="$xmlData/data/proposal/establish_name" />"
			label="设立形式" />
		</td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>新设项目类型：</td>
		<td nowrap colspan="3" valign="middle"><label> 
			<input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="type_project" label="生产加工项目" onchange="resourceAssess()"
				value="01" /><span style="vertical-align: middle;">生产加工项目</span></label> 
		<label> 
		<input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="type_project" label="资源开发项目"  onchange="resourceAssess()"
				value="02" /><span style="vertical-align: middle;">资源开发项目</span></label> 
		<label>
			<input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="type_project" label="营销及售后服务网络"  onchange="resourceAssess()"
				value="03" /><span style="vertical-align: middle;">营销及售后服务网络</span></label> 
		<input type="hidden" name="proposal/type_project_value" id="type_project_value" class="required" value="<x:out select="$xmlData/data/proposal/type_project_value" />"
			label="新设项目类型" /> 
		<input type="hidden" name="proposal/type_project_name" id="type_project_name" value="<x:out select="$xmlData/data/proposal/type_project_name" />"
			label="新设项目类型" />
		</td>
	</tr>
	<tr id="resource_assess">
		<td align="right" nowrap><span class="color_red">*</span>资源评估价值（万元）：</td>
		<td><input name="proposal/assess_worth" label="资源评估价值" type="text"  maxlength="10"
			onfocus="InitInput.setNumber(this,9,4,2)" style="text-align: right"
			value="<x:out select="$xmlData/data/proposal/assess_worth" />" /></td>
		<td align="right"><span class="color_red">*</span>评估机构：</td>
		<td><input name="proposal/assess_agency" label="评估机构"
			type="text" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/assess_agency" />" /></td>
	</tr>
	
	<tr id="resource_assess2">
		<td width="150" align="right"><span class="color_red">*</span>营销及售后服务网络辐射<br/>国别/地区（分号隔开）<br/>（限200字）：</td>
		<td colspan="3"><textarea name="proposal/country_area" id="country_area"  label="营销及售后服务网络辐射国别/地区"
			type="text" class="input_css required   maxlength:200" cols="112" rows="4"><x:out select="$xmlData/data/proposal/country_area" /></textarea></td>
	</tr>
	<tr id="resource_assess3">
		<td width="150" align="right"><span class="color_red">*</span>设立时间：</td>
		<td colspan="3">
		<c:set var="establish_date"><x:out select="$xmlData/data/proposal/establish_date" /></c:set> 
		<cpt:date id="establish_date" name="proposal/establish_date" value="${establish_date}" className=" required date dateCompare:establish_end_date" label="设立时间"></cpt:date>
		</td>
	</tr>

	<tr>
		<td align="right"><span class="color_red">*</span>境外投资批准文件文号：</td>
		<td><input name="proposal/over_country_no"  label="境外投资批准文件文号"
			type="text" class="input_css required"
			 maxlength="20"
			value="<x:out select="$xmlData/data/proposal/over_country_no" />" /></td>
		<td align="right"><span class="color_red">*</span>外汇登记证号：</td>
		<td><input name="proposal/foreign_exchange_no"  label="外汇登记证号"
			type="text" class="input_css required"
			 maxlength="20" value="<x:out select="$xmlData/data/proposal/foreign_exchange_no" />" /></td>
	</tr>
	
	
	<tr>
		<td align="right"><span class="color_red">*</span>中方控股（%）：</td>
		<td><input name="proposal/hold_share_cn"  label="中方控股"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			 maxlength="20"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/hold_share_cn" />" /></td>
		<td align="right"><span class="color_red">*</span>外方控股（%）：</td>
		<td><input name="proposal/hold_share_ot"  label="外方控股"  style="text-align: right;" 
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			 maxlength="20"
			value="<x:out select="$xmlData/data/proposal/hold_share_ot" />" /></td>
	</tr>
	
	
	<tr>
		<td align="right"><span class="color_red">*</span>实际投资额（万美元）：</td>
		<td><input name="proposal/invest_actual"  label="实际投资额"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			maxlength="20"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/invest_actual" />" /></td>
		<td align="right"><span class="color_red">*</span>中方实际投资额（万美元）：</td>
		<td><input name="proposal/invest_actual_cn"  label="中方实际投资额"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			 maxlength="20"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/invest_actual_cn" />" /></td>
	</tr>
	
	<tr>
		<td width="150" align="right"><span class="color_red">*</span>主要产品或资源名称<br/>（分号隔开）<br/>（限200字）：</td>
		<td colspan="3"><textarea name="proposal/resource_name" label="主要产品或资源名称"
			type="text" class="input_css required   maxlength:200" cols="112" rows="4"><x:out select="$xmlData/data/proposal/resource_name" /></textarea></td>
	</tr>
	
	<tr>
		<td width="150" align="right"><span class="color_red">*</span>投资企业名称：</td>
		<td colspan="3"><input name="proposal/invest_enterprise_name" label="投资企业名称"
			type="text" class="input_css required"
			style="width: 586px;" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/invest_enterprise_name" />" /></td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>投资企业出口总额（万元）：</td>
		<td><input name="proposal/inverst_export"  label="投资企业出口总额"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			 maxlength="20"   style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/inverst_export" />" /></td>
		<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
		<td><input name="proposal/compare_increate"  label="投资企业出口总额同比增幅"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,2,2,null,true)"
			 maxlength="20"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/compare_increate" />" /></td>
	</tr>
	
	<tr>
		<td align="right"><span class="color_red">*</span>上年度销售/营业收入（万元）：</td>
		<td><input name="proposal/laster_year_sales"  label="上年度销售/营业收入"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			 maxlength="20"   style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/laster_year_sales" />" /></td>
		<td align="right"><span class="color_red">*</span>上年度净利润（万元）：</td>
		<td><input name="proposal/laster_year_profit"  label="上年度净利润"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			 maxlength="20" style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/laster_year_profit" />" /></td>
	</tr>
	
	
	<tr>
		<td align="right"><span class="color_red">*</span>投资企业自营出口金额（万美元）：</td>
		<td><input name="proposal/inverst_export_self"  label="投资企业自营出口金额"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,4,2)"
			 maxlength="20"  style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/inverst_export_self" />" /></td>
		<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
		<td><input name="proposal/export_self_increate"  label="投资企业自营出口金额同比增幅"
			type="text" class="input_css required" onfocus="InitInput.setNumber(this,9,2,2,null,true)"
			 maxlength="20" style="text-align: right;" 
			value="<x:out select="$xmlData/data/proposal/export_self_increate" />" /></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>申请日期：</td>
		<td colspan="3"><c:set var="submit_date">
				<x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> <cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}" className=" required date" label="申请日期"></cpt:date>
		</td>

	</tr>
	</table>

<table class="t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo4" cellspacing="1">

	<tr>
		<td colspan="6" class="t_bar2">申报项目资金情况（金额单位：万元）</td>

	</tr>
	<tr>
		<td align="right" width="150">项目类别：</td>
		<td><x:out select="$xmlData/data/proposal/grant_name" /></td>
		<td align="right"  width="150">申请金额：</td>
		<td colspan="3"><input name="proposal/sqje" id="sqje"
			label="申请金额" type="text" 
			class="input_css  gray" disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/sqje" />" /></td>

	</tr>
	<tr>
		<td align="right">项目计划投入总额：</td>
		<td colspan="1"><input name="proposal/investment_budget" id="investment_budget"
			 label="项目计划投入总额" type="text" class="input_css  gray" disabled
			style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/investment_budget" />" /></td>
		<td align="right">上年度已完成投资：</td>
		<td colspan="3"><input name="proposal/finsh_budget" id="finsh_budget"
			 label="上年度已完成投资" type="text" 
			class="input_css  gray"  disabled style="text-align: right"
			onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/finsh_budget" />" /></td>
	</tr>

	<tr>
		<td align="right">支持方式：</td>
		<td><span name="proposal/sponsor_category"><x:out
					select="$xmlData/data/proposal/sponsor_category" /></span></td>

		<td align="right">资金级次：</td>
		<td colspan="3"><span name="proposal/fund_level">市级</span></td>
	</tr>
	<tr>
		<td align="right" nowrap>归口管理部门：</td>
		<td><span name="proposal/org_name">无锡市商务局</span></td>
		<td align="right">管理类别：</td>
		<td colspan="3"><span name="proposal/manage_category"><x:out
					select="$xmlData/data/proposal/manage_category" /></span></td>

	</tr>
	<tr style="display: none">
		<td></td>
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5"><c:set var="industry">
				<x:out select="$xmlData/data/proposal/industry_value" />
			</c:set> <cpt:checkbox key="industry" name="industry" repeatColumn="5"
				style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value"
			name="proposal/industry_value" class="required" value="${industry}"
			label="项目所属产业"> <input type="hidden"
			name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	
	
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="4">申请资助依据条款
		</td>
		</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo2"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="8">人员信息
		</td>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td>
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
	<tr>
		<td align="right">项目负责人：</td>
		<td><span name="proposal/fzr_psnname"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td align="right">联系电话：</td>
		<td><span name="proposal/fzr_tel"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td align="right">联系手机：</td>
		<td><span name="proposal/fzr_mobile"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td align="right">电子邮箱：</td>
		<td><span name="proposal/fzr_mail"><x:out
					select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>

</table>

<script type="text/javascript">
$(function(){
	resourceAssess();
	changeArea();
});

function resourceAssess() {
	var val = $("#type_project_value").val();
	var classAttr = "input_css";
	var obj = $("#resource_assess");
	if(val == '02') {
		obj.attr("style","display:");
		obj.children().find("input").each(function(){
	 		$(this).attr("class", classAttr+" required");
	 	});
	} else {
		obj.attr("style","display:none");
		obj.children().find("input").each(function(){
	 		$(this).attr("class", classAttr);
	 	});
	}
	var obj2 = $("#resource_assess2");
	var obj3 = $("#resource_assess3");
	
	if(val == '03') {
		obj2.attr("style","display:");
		obj3.attr("style","display:");
		$("#country_area").attr("class", classAttr+" required  maxlength:200");
		$("#establish_date").attr("class","required date");
	} else {
		obj2.attr("style","display:none");
		obj3.attr("style","display:none");
		$("#country_area").attr("class", classAttr);
		$("#establish_date").attr("class","");
	}
}


function setPre(){
	var  teach_staff=$("#teach_staff").val();
    var staff_total=$("#staff_total").val();
    $("#teach_staff_pre").val(formatVal(teach_staff*100/staff_total));
	
}

function service(num){
	$(":input[id^=service_area_]").addClass("gray");
	$(":input[id^=service_area_]").attr("disabled",true);
	if(num=='01'){
		$(":input[id^=service_area_]").val("");
	}else{
		$("#service_area_"+num).removeClass("gray");
		$("#service_area_"+num).attr("disabled",false);
		$(":input[id^=service_area_]").not("#service_area_"+num).val("");
	}
	
}

function changeArea() {
	var val = $("#exhibition_value").val();
	var classAttr = "input_css";
	if(val == '5') {
		$("#exhibition_area").attr("style","display:");
		$("#exhibition_area").attr("class", classAttr+" required");
	} else {
		$("#exhibition_area").attr("style","display:none");
		$("#exhibition_area").attr("class", classAttr);
	}
}




</script>


